package com.yitong.qicenter.activity;

import android.webkit.JavascriptInterface;

public class JsInterface {
    private static final String TAG = JsInterface.class.getSimpleName();

    //退出函数
    @JavascriptInterface
    public void doExit() {
        if (doExitPro != null) {
            doExitPro.doExitClickEnvent();
        }
    }

    public interface doExitClientClickListener {
        public void doExitClickEnvent();
    }

    private doExitClientClickListener doExitPro = null;

    @JavascriptInterface
    public void setExitClientClickListener(doExitClientClickListener listener) {
        doExitPro = listener;
    }
}
